package com.xuecheng.content.convert;

import com.xuecheng.api.contant.model.dto.CourseTeacherDTO;
import com.xuecheng.api.contant.model.vo.CourseTeacherVO;
import com.xuecheng.content.entity.CourseTeacher;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CourseTeacherConvert {

    CourseTeacherConvert INSTANCE = Mappers.getMapper(CourseTeacherConvert.class);

    // 将po转为dto数据
    CourseTeacherDTO entity2dto(CourseTeacher courseTeacher);

    // dto 转 po
    CourseTeacher dto2po(CourseTeacherDTO courseTeacherDTO);

    // vo 转 dto
    CourseTeacherDTO vo2dto(CourseTeacherVO courseTeacherVO);

    // dto 转 vo
    CourseTeacherVO dto2vo(CourseTeacherDTO courseTeacherDTO);

    List<CourseTeacherDTO> entitys2dtos(List<CourseTeacher> po);
}
